/*
 * Copyright (c) 悠静<i@mikuhl.cn> 仅用于提交给24年JavaWeb课程所用，侵权必究. 2024-至今. All rights reserved.
 *
 */

package cn.mikuhl.onlinereviewsplatform.Repository;

import cn.mikuhl.onlinereviewsplatform.Entities.Movie;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface MovieRepository extends JpaRepository<Movie, Long> {

    List<Movie> findByTitleContaining(String title);

    List<Movie> findByDirectorContaining(String director);

    List<Movie> findByTitleContainingAndDirectorContaining(String title, String director);
}
